-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add a script to copy eval run results to Turso #2452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
| const copyRun = async (runId: number) => { | ||
| const destDb = drizzle({ | ||
| schema, | ||
| connection: { url: process.env.TURSO_CONNECTION_URL!, authToken: process.env.TURSO_AUTH_TOKEN! }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider checking that TURSO_CONNECTION_URL and TURSO_AUTH_TOKEN are defined instead of using non-null assertions. This improves error clarity if the env variables are missing.
|
|
||
| console.log(`Copying ${tasks.length} tasks`) | ||
|
|
||
| for (const task of tasks) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The loop inserting each task and its taskMetrics might benefit from a transaction to ensure atomicity and data consistency. Consider wrapping these DB operations in a transaction.
fix: update ChatRowContent(user msg in chat windows) background and font size for better styling Add o1-pro to api.ts (RooCodeInc#2433) Add the o1-pro model to the openai section. Sourced model info from: https://platform.openai.com/docs/models/o1-pro Update contributors list (RooCodeInc#2411) docs: update contributors list [skip ci] Co-authored-by: mrubens <[email protected]> Add custom instructions for de (RooCodeInc#2383) v3.11.11 (RooCodeInc#2435) API fixes (RooCodeInc#2438) Changeset version bump (RooCodeInc#2436) * changeset version bump * Update CHANGELOG.md --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Rubens <[email protected]> More sane evals default concurrency + staggered startup (RooCodeInc#2441) Fix gh fork command (RooCodeInc#2442) Add a script to copy eval run results to Turso (RooCodeInc#2452) Fall back on aggressive line number stripping in diffs (RooCodeInc#2453) * Add option for aggressive line number stripping * Fall back on aggressive line number stripping in diffs Make Grok3 streaming work with OpenAI Compatible (RooCodeInc#2449) Update contributors list (RooCodeInc#2434) docs: update contributors list [skip ci] Co-authored-by: mrubens <[email protected]> v3.11.12 (RooCodeInc#2454) Changeset version bump (RooCodeInc#2455) * changeset version bump * Updating CHANGELOG.md format * Update CHANGELOG.md --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: R00-B0T <[email protected]> Co-authored-by: Matt Rubens <[email protected]>
Context
Implementation
Screenshots
How to Test
Get in Touch
Important
Add
copy-run.mtsscript to copy eval run results to Turso, with necessary configuration updates.copy-run.mtsscript to copy eval run results to Turso.db:copy-runscript command inpackage.json.turbo.jsonto includeTURSO_CONNECTION_URLandTURSO_AUTH_TOKENinglobalEnv.This description was created by
for 92067df. It will automatically update as commits are pushed.